<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>编辑夺宝</title>
    <link href="/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/resource/admin/js/jquery.js"></script>
    <script type="text/javascript" src="/resource/admin/js/jquery.tools.js"></script>
    <script type="text/javascript" src="/resource/admin/js/jquery.validate.js"></script>
    <script type="text/javascript" src="/resource/admin/editor/kindeditor.js"></script>
    <script type="text/javascript" src="/resource/admin/js/common.js"></script>
    <script type="text/javascript" src="/resource/admin/js/input.js"></script>
    <script type="text/javascript" src="/resource/admin/datePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $().ready(function() {
            var $inputForm = $("#inputForm");
            [@flash_message /]
        });
    </script>
</head>
<body>
<div class="path">
    <a href="${base}/common/index">首页</a> &raquo;编辑夺宝
</div>
<form id="inputForm" action="update" method="post" class="required-form" enctype="multipart/form-data"  onsubmit="return validateForm(this)">
    <input type="hidden" name="productId" value="${entity.dbProductId}"/>
    <input type="hidden" name="id" value="${entity.id}"/>
    <table class="input">
        <tr>
            <th>
                <span class="requiredField">*</span>订单编号
            </th>
            <td>
                ${entity.sn}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>订单商品
            </th>
            <td>
                ${entity.name}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>订单商品描述
            </th>
            <td>
                ${entity.description}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>夺宝商品
            </th>
            <td>
                <a href="/dbProduct/edit?id=${entity.dbProductId}">${entity.name}</a>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>所属夺宝期
            </th>
            <td>
                ${entity.timesNo}  <a href="/dbTimes/wantLottery?timesId=${entity.dbTimes.id}&orderId=${entity.id}" style="color: #CC0000;">设定订单</a>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>购买份数
            </th>
            <td>
                ${entity.quantity}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>付款金额
            </th>
            <td>
                ${entity.amount}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>夺宝用户
            </th>
            <td>
                 ${entity.memberId}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>用户手机号
            </th>
            <td>
                ${entity.mobile}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>ip
            </th>
            <td>
                 ${entity.ip}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>市区
            </th>
            <td>
                 ${entity.fromAddress}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>订单状态
            </th>
            <td>
                [#if entity.orderStatus==0]0已确认[/#if]
                [#if entity.orderStatus==1]1已完成[/#if]
                [#if entity.orderStatus==2]2已取消[/#if]
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>支付状态
            </th>
            <td>
                [#if entity.paymentStatus==0]0未支付[/#if]
                [#if entity.paymentStatus==1]1已支付[/#if]
                [#if entity.paymentStatus==2]2已退款[/#if]
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否中奖
            </th>
            <td>
                ${entity.isLottery}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>用户夺宝码
            </th>
            <td>
                 ${entity.codeInfo}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>收件人
            </th>
            <td>
                 ${entity.consignee}<span style="color: #cc0000;">(提交时间:[#if entity.shippingDate??]${entity.shippingDate?string("yyyy-MM-dd HH:mm:ss")})[/#if]</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>收件地址
            </th>
            <td>
                ${entity.areaName}&nbsp;${entity.address}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>收件电话
            </th>
            <td>
                ${entity.phone}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>物流方式
            </th>
            <td>
                ${entity.shippingMethodName}<span style="color: #cc0000;">(提交时间:[#if entity.shippingDate??]${entity.shippingStartDate?string("yyyy-MM-dd HH:mm:ss")})[/#if]</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>运单编号
            </th>
            <td>
                ${entity.shippingSn}
            </td>
        </tr>
    </table>
</form>
</body>
</html>